package com.hualan.sfzyproject.mapper;

import com.hualan.sfzyproject.domain.Announcement;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author LUCK
* @description 针对表【announcement】的数据库操作Mapper
* @createDate 2025-01-02 16:01:39
* @Entity com.hualan.sfzyproject.domain.Announcement
*/
public interface AnnouncementMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Announcement record);

    int insertSelective(Announcement record);

    Announcement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Announcement record);

    int updateByPrimaryKey(Announcement record);

    //查询所有公告
    List<Announcement> selectAll();

    //根据咨询师id查询公告
    List<Announcement> selectByConsultantId(Long consultantId);



}
